package service.Impl;

import dao.Userdao;
import pojo.TbUser;
import service.UserService;

import javax.transaction.Transactional;

@Transactional
public class UserServiceImpl implements UserService {
    private Userdao userdao;

    public void setUserdao(Userdao userdao) {
        this.userdao = userdao;
    }

    @Override
    public TbUser login(TbUser tbUser) {
        return userdao.login(tbUser);
    }

    @Override
    public boolean register(TbUser tbUser) {
        return userdao.register(tbUser);
    }
}
